package guoanmaker.operator.business.model;

import java.util.Date;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import guoanmaker.operator.business.modelnobind.operatorEnlistDetails;
import guoanmaker.operator.helper.common.abstractobj.IdEntity;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;



@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name="t_operator_activity_enlist")
public class OperatorActivityEnlist  extends IdEntity{
	private String  inforValue;  //xml 报名列表内容
	private String  userId;      // 报名人
	private String  activityId;  //活动 id
	private String  linkMan;     //联系人
	private String  telePhone;	 //联系电话
	private Integer buyNum;	    //购买数量
	private Double   payMoney;	//总金额
	private String  companyName; //所在公司名称
	private Integer state;		//状态订单状态  0 未支付  1 已支付  2 取消报名 3 订单过期 
	private String  streamNum;  //流水号
	private Date    buildTime;   //报名时间
	private String  couponId;    //优惠券商品id
	private Double   couponPrice; //优惠金额
	@Transient
	private String id;
	
	@Transient
	private Integer  orgState;
	@Transient
	public Integer getOrgState() {
		   return orgState;
	 }
	@Transient
	private String key;
	@Transient
	private String value;
	@Transient
	public String getKey() {
		   return key;
	 }
	@Transient
	public String getValue() {
		   return value;
	 }
	
	@Transient
	private Integer  count;
	@Transient
	public Integer getCount() {
		   return count;
	 }
	@Transient
	private List<operatorEnlistDetails>  Enlistlist;
	@Transient
	public List<operatorEnlistDetails> getEnlistlist() {
		   return Enlistlist;
	 }
	
	
	public OperatorActivityEnlist(String id,String inforValue,String userId,String activityId,
			String linkMan,String telePhone,Integer buyNum,Double payMoney,String companyName,Integer state,
			 String streamNum, Date buildTime){
		this.id=id;
		this.inforValue=inforValue;
		this.userId=userId;
		this.activityId=activityId;
		this.linkMan=linkMan;
		this.telePhone=telePhone;
		this.buyNum=buyNum;
		this.payMoney=payMoney;
		this.companyName=companyName;
		this.state=state;
		this.streamNum=streamNum;
		this.buildTime=buildTime;
	}
	
	public OperatorActivityEnlist(String id,String userId,String activityId,
			Integer state,String streamNum, Date buildTime){
		this.id=id;
		this.userId=userId;
		this.activityId=activityId;
		this.state=state;
		this.streamNum=streamNum;
		this.buildTime=buildTime;
	}
	
	
 }
